package com.ethink.order.api.info;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 销售需求单 INFO实体
 *
 * @author default
 * @date 2022-11-04
 */
@Data
public class SaleDemandOrderInfo {

    @Schema(description = "主键")
    private Long id;

    @Schema(description = "销售需求单号")
    private String orderNo;

    @Schema(description = "枚举 订单状态:1-草稿(s1)|2-需求确认(s2)|3-预供提报(s3)|4-已完成(s4)")
    private Integer orderStatus;

    @Schema(description = "订单来源")
    private String saleChannel;

    @Schema(description = "订单来源下级")
    private String saleSubChannel;

    @Schema(description = "制单人账号")
    private String createUserCode;

    @Schema(description = "制单人名称")
    private String createUserName;

    @Schema(description = "审批人账号")
    private String auditUserCode;

    @Schema(description = "审批人名称")
    private String auditUserName;

    @Schema(description = "货币编码")
    private String currencyCode;

    @Schema(description = "货币名称")
    private String currencyName;

    @Schema(description = "汇率")
    private BigDecimal exchangeRate;

    @Schema(description = "PO单号")
    private String poOrderNo;

    @Schema(description = "下单日期")
    private Date beginTime;

    @Schema(description = "标签")
    private String tag;

    @Schema(description = "审批流程ID")
    private String flowId;

    @Schema(description = "税率")
    private BigDecimal taxRate;

    @Schema(description = "数据删除标志(0-正常,1-删除)")
    private Integer isDeleted;

    @Schema(description = "数据创建时间戳")
    private Date createTime;

    @Schema(description = "数据更新时间戳")
    private Date updateTime;

    @Schema(description = "创建人")
    private String createUser;

    @Schema(description = "修改人")
    private String updateUser;

    @Schema(description = "备注信息")
    private String remark;

    @Schema(description = "报价数量")
    private Integer quoteNum;

    @Schema(description = "销售总价")
    private BigDecimal totalPrice;

    @Schema(description = "已锁数量(品)")
    private Integer lockQty;

    @Schema(description = "未锁数量(品)")
    private Integer noLockQty;

    @Schema(description = "已锁行数")
    private Integer lockLine;

    @Schema(description = "已提报未锁")
    private Integer purchaseLine;

    @Schema(description = "未提报")
    private Integer notPurchaseLine;

    @Schema(description = "总行数")
    private Integer sumLine;

}
